package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.Map;

/**
 * @author wang
 * @date 2020-03-07 13:31
 */
public interface RoleService {


    PageResult findPage(QueryPageBean pageBean);

    Map findAll();

    void add(Role role, Integer[] permissions, Integer[] menus);

    void edit(Role role, Integer[] permissions, Integer[] menus);

    void delete(int id);

    Map editecho(int id);
}
